import React, { Component } from 'react'
import Item from '../../components/Item'
import './index.css'
export default class List extends Component {
    render() {
        const { todoList, undataTodo, delTodo } = this.props;
        return (
            <ul className="todo-main">
                {
                    todoList.map(item => {
                        return <Item key={item.id} {...item} undataTodo={undataTodo} delTodo={delTodo} />
                    })
                }

            </ul>
        )
    }
}
